<template>
  <div id="control">
      <button class="control-btn" @click="resetNum">重置</button>
  </div>
</template>

<script>
import store from '../store.js'
export default {
    props: {

    },
    methods:{
        resetNum(){
            store.setNum(0);
        }
    }
}
</script>


<style>
    #control{
        width: 50%;
        height:32px;
        margin:-100px auto;
        display:flex;
        justify-content: center;
    }
    .control-btn{
        width: 100px;
        height:30px;
        background-color:red;
        text-align:center;
        line-height:30px;
        color:#fff;
    }
</style>
